package model;

public class GenerationConsolePrinter implements GenerationListener
{

	@Override
	public void matingSeason(GeneticAlgorithmDriver geneticAlgorithm)
	{
		//System.out.println("[Generation #" + geneticAlgorithm.getGeneration() + "] - " + geneticAlgorithm.getPopulation().getBestOrganismsAsStrings());
		System.out.println("[Generation #" + geneticAlgorithm.getGeneration() + "] - " + geneticAlgorithm.getPopulation().getBestOrganisms().iterator().next().calculateFitness() + " - " + geneticAlgorithm.getPopulation().getBestOrganisms().iterator().next().toString());

	}

}
